package com.lfxfs.soap.request.soap;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.wsdl.Fault;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@XmlAccessorType(XmlAccessType.FIELD)
public class SoapBody {
    /**
     * soap 中 envelope namespace
     */
    public static final String NAMESPACE_OF_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
    /**
     * soap 中 receiveB2COrderResponse namespace
     */
    public static final String NAMESPACE_OF_RECEIVEB2CORDER = "http://www.sdo.com/mas/api/receive/";

    //@XmlElement(name = "Fault", namespace = NAMESPACE_OF_ENVELOPE)
    //private Fault fault;

    @XmlElementWrapper(name = "receiveB2COrder", namespace = NAMESPACE_OF_RECEIVEB2CORDER)
    @XmlElement(name = "arg0")
    private List<ReceB2COrderRequest> receB2COrderRequestList;
    @XmlElementWrapper(name = "receiveB2COrderResponse", namespace = NAMESPACE_OF_RECEIVEB2CORDER)
    @XmlElement(name = "return")
    private List<ReceB2COrderResponse> receB2COrderResponseList;

}
